import Header from './common/header';
import GlobalStyle from './globalStyle';
import IconFont from './statics/iconfont/iconfont'
import { Provider } from 'react-redux';
import store from './store'
import { BrowserRouter,Route,Routes } from 'react-router-dom'
import Home from './page/home'
import Detail from './page/detail'

function App() {
  return (
    <Provider store={store}>
      <div className="App">
        <GlobalStyle />
        <IconFont />
        <Header />
        <BrowserRouter>
          <Routes>
            <Route path="/" element={<Home></Home>} />
            <Route path="Detail" element={<Detail></Detail>} />
          </Routes>
        </BrowserRouter>
      </div>
    </Provider>
  );
}

export default App;
